package com.heatup.apt.api.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.heatup.apt.model.api.ApiResultModel;
import com.baomidou.framework.service.ISuperService;
import com.heatup.apt.model.api.coach.CoachResultModel;
import com.heatup.apt.model.coach.CoachBriefResultModel;
import com.heatup.apt.model.coach.CoachInfo;
import com.heatup.apt.model.course.CoursePrivteFeeVO;
import com.heatup.apt.model.order.PresalePrivateCourseOrderModel;
import com.heatup.apt.model.user.UserInfo;

/**
 * Created by b3st9u on 16/8/20.
 */
public interface CoachService extends ISuperService<CoachInfo> {
    /**
     * 根据Id查询教练信息
     *
     * @param id
     * @return
     */
    CoachResultModel queryCoachById(int id,int userId);

    /**
     * 根据教练手机号码查询教练
     *
     * @param mobile 手机号码
     * @return
     */
    CoachInfo queryCoachByMobile(String mobile);

    /**
     * 根据教练手机号码查询教练
     *
     * @param mobile 手机号码
     * @return
     */
    CoachInfo queryCoachAndPwdByMobile(String mobile);

    List<CoursePrivteFeeVO> queryCoachPrivateFeeDetail(Map<String, Object> paramsMap);

    Map<String, Object> queryCoachCampFeeDetail(Map<String, Object> paramsMap);

    /**
     * 查询教练课时费中的补贴/扣费月度详情
     *
     * @param mobile 教练手机号
     * @param year   查询年
     * @param month  查询月
     * @return 返回教练课时费中的补贴/扣费月度详情
     */
    JSONObject queryCoachAdjustFeeMonth(String mobile, Integer year, Integer month);
    
    /**
     * 根据门店查询所有私教
     * @param parmasMap
     * @return
     */
    Map<String, Object> queryCoachPrivateList(Map<String,Object> parmasMap);

    /**
     * 查询私教订单限制
     *
     * @param serviceType  9 体测 10 体验
     *
     * @author blank 2017/8/24 下午6:28
     */
    Map<String,Object> queryPrivateOrderLimit(Integer serviceType);

    /**
     *@Author: timo
     *@Date: 2018/3/22 18:37
     *@Description:
     * 返回该教练所在教练团队 所有成员信息
     * isPrivateCoach  1 只查询私教  2查询所有
     */
    List<CoachBriefResultModel> queryCoachTeamList(String mobile,  Integer isPrivateCoach);

    /**
     *@Author: timo
     *@Date: 2018/3/25 22:48
     *@Description:
     * 获取私教开单的参数
     *
     */
    ApiResultModel getOpendBillingParam(UserInfo userInfo);

    /**
     *@Author: timo
     *@Date: 2018/3/30 15:37
     *@Description:
     * 查询教练团队
     *
     */
    ApiResultModel chiefCoachQueryCoachTeamList(UserInfo userInfo);
}
